# $letterArray = "a","b","c","d"
# foreach($letter in $letterArray){
#     Write-Host $letter
# }

# $file是文件变量
# $file 存储了Simple PowerShell
# Get-ChildItem 也有 Simple PowerShell
# 这样就符合了条件，于是就可以foreach
# Write-Host 就是在主机屏幕写入
# 感觉和Write-Output差不多

# foreach($file in Get-ChildItem){
#     Write-Host $file
# }

# foreach($file in Get-ChildItem){
#     if($file.length -gt 100KB){
#         Write-Host $file
#     }
# }

foreach($file in Get-ChildItem){
    if($file.length -gt 100KB){
        Write-Host $file
        Write-Host $file.Length
        Write-Host $file.LastAccessTime
    }
}